package com.haredot.vo;

import com.haredot.entity.enums.Sex;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.time.LocalDate;

public class UserTwoVo {

    @NotNull(message = "用户ID不允许为空")
    private Long userId ;
    /**
     * 用户头像
     */
    private String avatar ;

    /**
     * 出生日期
     */
    @Past(message = "出生日期必须是一个过去时间")
    @NotNull(message = "出生日期不允许为空")
    private LocalDate birth ;

    @NotEmpty(message = "昵称不允许为空")
    private String nickName;

    @NotEmpty(message = "真实姓名不允许为空")
    private String realName ;

    @NotNull(message = "性别不允许为空")
    private Sex sex ;
    /**
     * 第一步返回的签名
     */
    private String sign ;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public LocalDate getBirth() {
        return birth;
    }

    public void setBirth(LocalDate birth) {
        this.birth = birth;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}
